Automattic\WooCommerce\Admin\API\Reports\Segmenter B

Total Complexity 90
Dependencies 3
Dependents 0
Total lines 708
Lines of code 359
Logical lines of code 218
Comment lines 272
Methods 22
Properties 4

Methods 22

Method Rating Maintainability Complexity Lines of code
set_all_segments()
C
33 23 98
merge_segment_intervals_results()
A
46 8 47
fill_in_missing_segments()
A
49 9 31
merge_segment_totals_results()
S
50 6 32
prepare_selections()
S
57 6 17
reformat_intervals_segments()
S
51 5 28
assign_segments_to_intervals()
S
58 5 16
reformat_totals_segments()
S
54 4 21
segment_cmp()
S
65 4 9
get_product_related_segments()
S
66 3 7
get_order_related_segments()
S
67 3 7
fill_in_missing_interval_segments()
S
72 2 5
get_all_segments()
S
72 2 6
get_segment_labels()
S
71 2 6
get_totals_segments()
S
72 1 5
__construct()
S
77 1 4
get_segments()
S
82 1 3
get_order_related_intervals_segments()
S
82 1 3
get_order_related_totals_segments()
S
82 1 3
get_product_related_intervals_segments()
S
82 1 3
get_product_related_totals_segments()
S
82 1 3
add_intervals_segments()
S
72 1 5